package model

import "github.com/jinzhu/gorm"

type Comment struct {
	gorm.Model
	Uid      uint `gorm:"not null"`
	Vid      uint `gorm:"not null"`
	Text     string `gorm:"size:255;'"`
	ReplyUid uint `gorm:"default:0"`//回复的人的uid
	ReplyName string `gorm:"type:varchar(20);default:'0'"`//回复的人的昵称
	LastId   uint `gorm:"default:0"`
	Author 	 User `gorm:"ForeignKey:id;AssociationForeignKey:uid"`
}

